import request from '@/utils/request'

export function getFinanceAccountByPage(query) {
  return request({
    url: '/mall/api/manager/finance/account',
    method: 'get',
    params: query
  })
}

export function addFinanceAccount(data) {
  return request({
    url: '/mall/api/manager/finance/account',
    method: 'post',
    data
  })
}

export function getFinanceAccountById(id) {
  return request({
    url: '/mall/api/manager/finance/account/' + id,
    method: 'get'
  })
}

export function putFinanceAccountById(id, data) {
  return request({
    url: '/mall/api/manager/finance/account/' + id,
    method: 'put',
    data
  })
}

export function deleteFinanceAccountById(id) {
  return request({
    url: '/mall/api/manager/finance/account/' + id,
    method: 'delete'
  })
}
